package sk.openit.xml.stax.iterator;

import sk.openit.xml.entity.DbConfig;


public class RunApp {

	public static void main(String[] args) {
//		DbConfigReaderEchoOnly cursor = new DbConfigReaderEchoOnly("database-config.xml");
//		cursor.process();

		DbConfigReader iterator = new DbConfigReader("database-config.xml");
		iterator.process();
		DbConfig dbConfig = iterator.getDbConfig();
		System.out.println(dbConfig);
		
		DbConfigWriter dbConfigWriter = new DbConfigWriter("dbc.xml");
		dbConfigWriter.serialize(dbConfig);
	}
}
